#include "ManController.h"
#include "Main_constant.h"


BOOL ManController::SetParam(WORD memId, Ndata* pSrcParam) {

	return false;
}




BOOL ManController::GetParam(WORD memId, Ndata* pDstParam) {

	switch (memId)
	{
		//class
		case 0: {
			char classNameList[16];
			LocateInstanceClassName(m_entryIndex, m_instanceIndex, classNameList);
			pDstParam->SetDataBody(STR_TYPE, classNameList, 16);
			break;
		}
			  //tag
		case 1: {
			char tagNameList[16];
			LocateInstanceTagName(m_entryIndex, m_instanceIndex, tagNameList);
			pDstParam->SetDataBody(STR_TYPE, tagNameList, 16);
			break;
		}
		 //actuator
		case 2: {
			pDstParam->SetWord(0x0000);
			break;
		}
		//dispChnl
		case 3: {
			pDstParam->SetWord(0x0000);
			break;
		}
		 //closedCtrl
		case 4: {
			DWORD dvba[7] = { 0, 1, 2, 3, 4, 5,0};
			for (int i = 0; i < 7; i++) {
				dvba[i] = Int2Dvb(dvba[i]);
			}
			pDstParam->SetDataBody(DVBA_TYPE, dvba, 10 *7);
			break;
			break;
		}
		 //ctrlMode
		case 5: {
			pDstParam->SetWord(0x03);
			break;
		}
		//refType
		case 6: {
			pDstParam->SetWord(0x11);
			break;
		}
		//ref
		case 7: {
			pDstParam->SetDvb(Float2Dvb(1.24,2));
			break;
		}
		 //refVelo
		case 8: {
			pDstParam->SetDvb(Float2Dvb(0, 1));
			break;
		}
		 //feed
		case 9: {
			pDstParam->SetDvb(Float2Dvb(1.23, 2));
			break;
		}
		//feedVelo
		case 10: {
			pDstParam->SetDvb(Float2Dvb(0.0, 1));
			break;
		}
		//mfu
		case 11: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}
		 //cpu
		case 12: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}
		//cvu
		case 13: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}
		 //u
		case 14: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}
	    //duration		    
		case 15: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}
		 //trackId		 
		case 16: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}	 //inWave		
		case 17: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		} //setWaveFreq		
		case 18: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}//setWaveMin		
		case 19: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}//setWaveMax	
		case 20: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}//waveMin	
		case 21: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 22: {//waveMax
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 23: {//setWaveNum
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 24: {//waveCount
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 25: {//setCycleNum
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 26: {//cycleCount
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 27: {//x1
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}case 28: {//x2
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}


	}
	return true;
}